package org.springframework.security.oauth.examples.sparklr;

import java.util.Collection;
import java.io.InputStream;

/**
 *	 	检索照片的服务。
 * 
 * @author Ryan Heaton
 */
public interface PhotoService {

  /**
   *	 为当前用户加载照片。
   *
   * @return The photos for the current user.
   */
  Collection<PhotoInfo> getPhotosForCurrentUser(String username);

  /**
   *	 按id加载照片。
   * 
   * @param id The id of the photo.
   * @return The photo that was read.
   */
  InputStream loadPhoto(String id);
}
